package com.heima.utils.thread;

import com.heima.model.wemedia.pojos.WmUser;

public class WmThreadLocalUtils {

    public static ThreadLocal<WmUser> WM_USER_THREAD_LOCAL=new ThreadLocal<>();

    //添加
    public static void setUser(WmUser wmUser){
        WM_USER_THREAD_LOCAL.set(wmUser);
    }
    //获取
    public static WmUser getUser(){
        return WM_USER_THREAD_LOCAL.get();
    }
    //清除
    public static void remove(){
        WM_USER_THREAD_LOCAL.remove();
    }
}
